package com.wsy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wsy.entity.BookInfo;
import com.wsy.entity.Orders;
import com.wsy.entity.ShopCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookInfoMapper extends BaseMapper<BookInfo> {
    List<BookInfo> select();

    //商品详情
    List<BookInfo> selectById(Integer id);

    //订单
    int addOrders(Orders orders);

    List<Orders> selOrders(String oid);

    //支付
    int updOrderPay(String oid,String addressId);

    //查询订单
    List<Orders> selUserOrders(String userId);

    //添加购物车
    int addCart(ShopCart shopCart);

}
